package com.zs.toolbox.web2j.system.core.service;

import com.zs.toolbox.web2j.common.request.WtPrimaryKeyReqeust;
import com.zs.toolbox.web2j.system.core.entity.WtUserMessageEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zs.toolbox.web2j.system.core.request.WtBatchPrimaryKeyRequest;
import com.zs.toolbox.web2j.system.core.request.WtSaveUserMessageRequest;

/**
 * <p>
 * 用户-消息表 服务类
 * </p>
 *
 * @author eric.zhang
 * @since 2018-10-10
 */
public interface WtUserMessageService extends IService<WtUserMessageEntity> {

    void saveMessages(WtSaveUserMessageRequest request);

    WtUserMessageEntity getDetailAndSetReaded(WtPrimaryKeyReqeust<Integer> reqeust);

    void setRead(WtBatchPrimaryKeyRequest<Integer> reqeust);
}
